#include ".\gameplayer.h"

CGamePlayer::CGamePlayer(void)
{
	m_pGameRole = NULL;
}

CGamePlayer::~CGamePlayer(void)
{
	m_pGameRole = NULL;
}

void CGamePlayer::SetGameRole(CGameRole* pGameRole)
{
	if (pGameRole == NULL)
	{
		assert(0);
		return;
	}
	m_pGameRole = pGameRole;
}

CGameRole* CGamePlayer::GetGameRole()
{
	return m_pGameRole;
}

void CGamePlayer::Draw(HDC hDC)
{
	if (hDC == NULL || m_pGameRole == NULL)
	{
		assert(0);
		return;
	}
	m_pGameRole->GetSprite()->DrawSprite(hDC);
	return;
}